package cn.kaguyaever.service;

import cn.kaguyaever.entity.Candidate;
import cn.kaguyaever.entity.Vote;

import java.util.List;

public interface VoteService {

    public void createVote(Vote vote);

    public Vote queryVote(String voteId);

    public List<Vote> queryAllVote(String projectId);

    public void beginVote(String voteId);

    public void endVote(String voteId);

    public void setWinner(String winner,String voteId);

    public void deleteVote(String projectId);
}
